package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.CheckItem;
import com.itheima.pojo.Permission;
import com.itheima.pojo.Role;

import java.util.List;
import java.util.Set;

public interface PermissionDao {
    Set<Permission> findListByRoleId(Integer id);

    Page<Permission> findByCondition(String queryString);

	void insPermission(Permission permission);

	int selCountWithRole(Integer id);

	void delById(Integer id);

	Permission selById(Integer id);

	void updPermission(Permission permission);

	List<Permission> selAll();

}
